package com.kaili.basic.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.dto.ReceivableHandleQueryDto;
import com.kaili.basic.pojo.entity.HandleExport;
import com.kaili.basic.pojo.entity.ReceivableExport;
import com.kaili.basic.pojo.entity.ReceivableHandle;

import java.util.List;
import java.util.Map;

/**
 * Created by xxx on 2019-03-07.
 */
public interface ReceivableHandleService {
    //添加
    int addReceivableHandle(ReceivableHandle receivableHandle);

    //删除
    int deleteReceivableHandles(Map<String, Object> map);

    //修改客户
    int updateReceivableHandle(ReceivableHandle receivableHandle);

    //条件查询获取信息
    Page<ReceivableHandle> queryReceivableHandle(Page<ReceivableHandle> page, ReceivableHandleQueryDto receivableHandleQueryDto);

    //id查询信息
    ReceivableHandle queryReceivableHandleById(Long id);

    //流水号查询信息
    ReceivableHandle queryBySerialNumber(String serialNumber);

    //收付款时修改信息
    int updateByReceiptPay (String serialNumber,Double money);

    //查询当前数据库中的最大ID
    Long getMaxReceivableHandleId();

    //导出
    List<ReceivableExport> queryReceivableExport(ReceivableHandleQueryDto receivableHandleQueryDto);

    //导出
    List<HandleExport> queryHandleExport(ReceivableHandleQueryDto receivableHandleQueryDto);
}
